﻿<script>
     $(function () {
         $(".chzn-select").chosen();
         $(".chzn-select-deselect").chosen({ allow_single_deselect: true });
         $(".date-picker").each(function (index) {
             var util = new gerpUtility();
             var dateObj = util.convertStringToDate(this.value);
             this.value = util.getDatePickerStringFormat(dateObj);
         });
     });
	
@{ var unreadMessageCount = (ViewBag.UnreadMessageCount as int?)??0; }

@if(unreadMessageCount > 0)
{
@:  $(document).ready(function(){
@:	    $('#popupMessage').modal('show');
@:  }); 
}
	
    
@{ var unwarnTaskMessageCount = (ViewBag.UnwarnTaskMessageCount as int?) ?? 0; }
@if (unwarnTaskMessageCount > 0)
{
@:  $(document).ready(function () {
@:	    $('#popupTaskMessage').modal('show');
@:  });
}
</script> 